<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script>
			"use strict"
			
			let obj = {username: "kobe", age: 12}
			let {username, age} = obj
			console.log(username)
			
			let arr = [1, "atguigu", [5, 10], false, "ES6"]
			let [,, a, b] = arr
			console.log(a, b)
			
			function foo({username, age}){
				console.log(username, age)
			}
			foo(obj)
		</script>
	</body>
</html>
